package com.example.rentalcar.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.rentalcar.entity.Worker;
import com.example.rentalcar.mapper.WorkerMapper;


import com.example.rentalcar.service.IWorkerService;
import com.example.rentalcar.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkerServiceImpl  extends ServiceImpl<WorkerMapper,Worker> implements IWorkerService
{
    @Autowired
    WorkerMapper workerMapper;

    @Override
    public Worker findById(Long workId) {
        return workerMapper.selectById(workId);
    }
}
